package com.scs.application.modules.fsd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 用户群组
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "智能柜用户群组表")
@TableName("fsd_group")
public class FsdGroup extends DataEntity {

    @EntityFieldAnnotation(
            text = "群组名",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String groupName;

    @EntityFieldAnnotation(
            text = "群组名拼音",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String groupNamePy;

    @EntityFieldAnnotation(
            text = "备注",
            length = "250",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

    @EntityFieldAnnotation(
            text = "状态",
            type = EntityFieldType.TINYINT,
            length = "1",
            not_null = true,
            default_value = "0",
            comment = ""
    )
    private Boolean status;
}
